package cfca.paperless.client.servlet._3_assist._3_19_GetP10Amount;


import cfca.paperless.client.servlet.PaperlessClient;
import cfca.paperless.client.servlet.PaperlessConfig;

/**
 * @description 获取P10数量
 * @author wlj
 * @date : 2018-5-21 下午5:09:16
 * @reviewed by 
 */
public class GetP10AmountTest01 {

    public static void main(String[] args) throws Exception {

        long timeStart = System.currentTimeMillis();// 开始时间

        System.out.println("GetP10AmountTest01 START");

        PaperlessClient clientBean = new PaperlessClient(PaperlessConfig.assistUrl, 10000, 60000);// 无纸化辅助接口的访问URL

        String keyAlg = "RSA";
        String keyLength = "2048";
        String hashAlg = "SHA-256";
       // 操作员编码或者机构号
        String operatorCode = PaperlessConfig.operatorCode;
        // 渠道编码，可以为空
        String channelCode = PaperlessConfig.channelCode;
        // 获取P10数量
        String result = clientBean.getP10Amount(keyAlg,hashAlg,keyLength,operatorCode,channelCode);
        System.out.println("getP10Amount result="+result);
        System.out.println("GetP10AmountTest01 END");
        long timeEnd = System.currentTimeMillis();// 结束时间
        System.out.println("##########" + "time used:" + (timeEnd - timeStart) + "##########");
    }

}
